package de.tabuma.formcreator.entity;

import java.util.*;
import java.util.logging.*;

/**
  * @author $Author: $
  * @version $Revision: $
  * @since $Date: $
 */
public class FormManager {

    private String xFormPath;
    public String getXFormPath() {
        return xFormPath;
    }
    public void setXFormPath(String xFormPath) {
        this.xFormPath = xFormPath;
    }
    private String name;
    public String getName() {
        return name;
    }

    public String getXMLName() {
        String name1 = name.replaceAll(" ", "_");
        return name1;
    }

    private FormStructur requestObject;
    public FormStructur getRequestObject() {
        return requestObject;
    }
    public void setRequestObject(FormStructur formularStructur) {
        this.requestObject = formularStructur;
    }

    private FormStructur responseObject;
    public FormStructur getResponseObject() {
        return responseObject;
    }
    public void setResponseObject(FormStructur responseObject) {
        this.responseObject = responseObject;
    }

    private FormStructur faultObject;
    public FormStructur getFaultObject() {
        return faultObject;
    }
    public void setFaultObject(FormStructur faultObject) {
        this.faultObject = faultObject;
    }

    private boolean writeable;
    public FormManager(String name) {
        init(false,name);
    }
    public FormManager(boolean writeable,String name) {
        init(writeable,name);
    }

    public void init(boolean writeable,String name) {
        this.name = name;
        this.writeable = writeable;
        this.xFormPath = "";
        this.formGroupList = new ArrayList<FormGroup>();
    }
    
    private List<FormGroup> formGroupList;

    public List<FormGroup> getFormGroupList() {
        return formGroupList;
    }


}
